from django.db import models

class BaseModel(models.Model):
    isdel = models.BooleanField(default=False, verbose_name='是否删除')
    sort = models.IntegerField(default=0, verbose_name='排序')
    addtime = models.DateTimeField(auto_now_add=True, verbose_name='添加时间')

    class Meta:
        abstract =  True # 说明是抽象模型类，不会创建表